package com.xframe.xdal.core.model.sqlbuilder.factory;

import com.xframe.xdal.core.constant.DataSourceTypeEnums;
import com.xframe.xdal.core.model.sqlbuilder.BaseSqlBuilder;
import com.xframe.xdal.core.model.sqlbuilder.SqlBuilderFactory;
import com.xframe.xdal.core.model.sqlbuilder.proc.DefBatchSaveBuilder;
import com.xframe.xdal.core.model.sqlbuilder.proc.OracleBatchSaveBuilder;

public class DefBatchSaveBuilderFactory extends SqlBuilderFactory {
    @Override
    public BaseSqlBuilder create(DataSourceTypeEnums dataSourceTypeEnums) {
        switch (dataSourceTypeEnums){
            case Oracle:
                return new OracleBatchSaveBuilder();
        }
        return new DefBatchSaveBuilder();
    }
}
